.class public Lcom/xingbook/ui/XbLayout;
.super Landroid/view/ViewGroup;


# instance fields
.field public b:Z

.field public c:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    iput-boolean v0, p0, Lcom/xingbook/ui/XbLayout;->b:Z

    iput-boolean v0, p0, Lcom/xingbook/ui/XbLayout;->c:Z

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput-boolean v0, p0, Lcom/xingbook/ui/XbLayout;->b:Z

    iput-boolean v0, p0, Lcom/xingbook/ui/XbLayout;->c:Z

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, p3}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    iput-boolean v0, p0, Lcom/xingbook/ui/XbLayout;->b:Z

    iput-boolean v0, p0, Lcom/xingbook/ui/XbLayout;->c:Z

    return-void
.end method


# virtual methods
.method protected onLayout(ZIIII)V
    .locals 0

    return-void
.end method

.method protected onMeasure(II)V
    .locals 3

    iget-boolean v0, p0, Lcom/xingbook/ui/XbLayout;->b:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/XbLayout;->getRight()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/XbLayout;->getLeft()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/xingbook/ui/XbLayout;->getBottom()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/XbLayout;->getTop()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/ui/XbLayout;->setMeasuredDimension(II)V

    :goto_0
    return-void

    :cond_0
    invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->onMeasure(II)V

    goto :goto_0
.end method
